<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<div class="header">
	<h2>
		&nbsp;&nbsp;读取邮箱报障<span><font color="red">（* 为必填项）</font> </span>
	</h2>
</div>
<form action="app/appConfig/save" id="formAppConfig" method="post">
	<table class=" form-table">
		<tbody>

			<tr>
				<td class="td1">pop服务：</td>
				<td class="td2"><input type="text" id="readMailPop3Server"
					name="readMailPop3Server" class="required"
					value="${readMailPop3Server}" maxlength="50" style="width:30%" /><font
					color="blue">（例如：pop.163.com）</font></td>
			</tr>
			
			<tr>
				<td class="td1">收件白名单：</td>
				<td class="td2"><input type="text" id="allowMails"
					name="allowMails" class="required"
					value="${allowMails}" maxlength="50" style="width:30%" /><font
					color="blue">（备注:1.*@163.com表示收取后缀为163.com的所有邮件,2.123@163.com 表示收取123@163.com）</font></td>
			</tr>
			<tr>
				<td class="td1">邮箱帐号：</td>
				<td class="td2"><input type="text" id="readMailUser"
					class="required" name="readMailUser" value="${readMailUser}"
					maxlength="100" style="width:30%" /><font color="blue">（例如：xxx@163.com）
				</td>
			</tr>
			<tr>
				<td class="td1">密码：</td>
				<td class="td2"><input type="password" id="readMailPassword"
					class="required" name="readMailPassword"
					value="${readMailPassword}" maxlength="50" style="width:30%" />
				</td>
			</tr>
		</tbody>
	</table>
</form>
<table class=" form-table" style="border:none;">
	<tbody>
		<tr style="border:none;">

			<td class="td2" style="border:none;padding:10px 0 10px 150px;"><button
					type="button" id="btnSaveAppConfig" class="nui-mainbtn"
					onclick="btnSaveAppConfigOnclick();" value="保存">&nbsp;&nbsp;&nbsp;保存&nbsp;&nbsp;&nbsp;</button>
			</td>
		</tr>

	</tbody>
</table>

<script type="text/javascript">
	function btnSaveAppConfigOnclick() {

		isperp.showLoading();
		isperp.submitForm({
			formId : "formAppConfig",
			success : function(data) {
				isperp.hideLoading();
				if (data.success) {
					isperp.alert("保存成功！");
				} else {
					isperp.alert(data.tata);
				}
			},
			error : function() {

				isperp.hideLoading();
				isperp.alert("保存失败！");
			}
		});
	}
</script>










